package com.zang.schema.observable.observer;

import java.util.Observable;
import java.util.Observer;

/**
 * @author Zhang Qiang
 * @Date 2019/8/29 17:51
 */
public class XiaoCiLang implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        String res = String.valueOf(arg);
        switch (res){
            case "abo":
                System.out.println("XiaoCiLang very like");
                break;
            case "fw":
                System.out.println("XiaoCiLang very like, and some boy");
                break;
            default:
                System.out.println("XiaoCiLang is nothing");
                break;
        }
    }
}
